<template>
  <a-switch
    checkedChildren="开"
    unCheckedChildren="关"
    :checked="!!status"
    @change="change"
  />
</template>

<script>
export default {
  props: {
    status: {
      type: Number,
      default: 0
    }
  },
  methods: {
    change(e) {
      this.$emit("change", e);
    }
  }
};
</script>

<style></style>
